Package com.cisco.pt.ipc.sim.pdu.impl
Class OSPFLSAHeaderImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
com.cisco.pt.ipc.sim.pdu.impl.PduImpl
com.cisco.pt.ipc.sim.pdu.impl.OSPFLSAHeaderImpl
- All Implemented Interfaces:
IPCData,OSPFLSAHeader,Pdu,Signal
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IPAddressprotected Shortprotected Shortprotected booleanprotected Shortprotected IPAddressprotected Byteprotected intprotected Byteprotected ShortFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
fieldNames, fieldTable, signalType, typeTable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeTypeAndPayload(EncodedBuffer buffer) getAge()getFieldType(String fieldName) booleangetIpv6()getLsId()intgetType()voidpduRead(EncodedBuffer buffer) voidread(EncodedBuffer buffer) Reads this object from an EncodedBuffer of raw datavoidsetAdvRouter(IPAddress advRouter) voidvoidsetChecksum(Short checksum) voidsetIpv6(boolean ipv6) voidvoidvoidvoidsetSeqNumber(int seqNumber) voidvoidMethods inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
getFieldValueMethods inherited from class com.cisco.pt.ipc.impl.IPCDataImpl
checkType, pduReadBoolean, pduReadByte, pduReadDouble, pduReadFloat, pduReadInt, pduReadIPAddress, pduReadIPCData, pduReadIPV6Address, pduReadLong, pduReadMACAddress, pduReadPair, pduReadQString, pduReadShort, pduReadString, pduReadUUID, pduReadVector, readBoolean, readByte, readDouble, readFloat, readInt, readIPAddress, readIPCData, readIPV6Address, readLong, readMACAddress, readPair, readQString, readShort, readString, readUUID, readVectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.sim.pdu.Signal
getFieldValue
-
Field Details
-
ipv6
protected boolean ipv6 -
age
-
option
-
type
-
typev3
-
lsId
-
advRouter
-
seqNumber
protected int seqNumber -
checksum
-
length
-
-
Constructor Details
-
OSPFLSAHeaderImpl
public OSPFLSAHeaderImpl()
-
-
Method Details
-
getIpv6
public boolean getIpv6()- Specified by:
getIpv6in interfaceOSPFLSAHeader- Returns:
- boolean Returns a boolean
-
setIpv6
public void setIpv6(boolean ipv6) - Specified by:
setIpv6in interfaceOSPFLSAHeader- Parameters:
ipv6- Takes in a parameter of ipv6
-
getAge
- Specified by:
getAgein interfaceOSPFLSAHeader- Returns:
- Short Returns a Short
-
setAge
- Specified by:
setAgein interfaceOSPFLSAHeader- Parameters:
age- Takes in a parameter of age
-
getOption
- Specified by:
getOptionin interfaceOSPFLSAHeader- Returns:
- Byte Returns a Byte
-
setOption
- Specified by:
setOptionin interfaceOSPFLSAHeader- Parameters:
option- Takes in a parameter of option
-
getType
- Specified by:
getTypein interfaceOSPFLSAHeader- Returns:
- Byte Returns a Byte
-
setType
- Specified by:
setTypein interfaceOSPFLSAHeader- Parameters:
type- Takes in a parameter of type
-
getTypev3
- Specified by:
getTypev3in interfaceOSPFLSAHeader- Returns:
- Short Returns a Short
-
setTypev3
- Specified by:
setTypev3in interfaceOSPFLSAHeader- Parameters:
typev3- Takes in a parameter of typev3
-
getLsId
- Specified by:
getLsIdin interfaceOSPFLSAHeader- Returns:
- IPAddress Returns a IPAddress
-
setLsId
- Specified by:
setLsIdin interfaceOSPFLSAHeader- Parameters:
lsId- Takes in a parameter of lsId
-
getAdvRouter
- Specified by:
getAdvRouterin interfaceOSPFLSAHeader- Returns:
- IPAddress Returns a IPAddress
-
setAdvRouter
- Specified by:
setAdvRouterin interfaceOSPFLSAHeader- Parameters:
advRouter- Takes in a parameter of advRouter
-
getSeqNumber
public int getSeqNumber()- Specified by:
getSeqNumberin interfaceOSPFLSAHeader- Returns:
- int Returns a int
-
setSeqNumber
public void setSeqNumber(int seqNumber) - Specified by:
setSeqNumberin interfaceOSPFLSAHeader- Parameters:
seqNumber- Takes in a parameter of seqNumber
-
getChecksum
- Specified by:
getChecksumin interfaceOSPFLSAHeader- Returns:
- Short Returns a Short
-
setChecksum
- Specified by:
setChecksumin interfaceOSPFLSAHeader- Parameters:
checksum- Takes in a parameter of checksum
-
getLength
- Specified by:
getLengthin interfaceOSPFLSAHeader- Returns:
- Short Returns a Short
-
setLength
- Specified by:
setLengthin interfaceOSPFLSAHeader- Parameters:
length- Takes in a parameter of length
-
getFieldType
- Overrides:
getFieldTypein classPduImpl
-
read
Reads this object from an EncodedBuffer of raw data -
pduRead
-
getOrderedFieldNames
- Specified by:
getOrderedFieldNamesin interfaceSignal- Overrides:
getOrderedFieldNamesin classPduImpl
-
encodeTypeAndPayload
- Specified by:
encodeTypeAndPayloadin interfaceSignal- Overrides:
encodeTypeAndPayloadin classPduImpl
-